package engine.render;

import java.awt.Image;
import java.util.LinkedList;

import engine.ResourceManager;

public class Sprite {
	LinkedList<Image> frames;
	int width;
	int height;

	public Sprite(String name) {
		frames = new LinkedList<Image>();
		Image sprite = ResourceManager.loadSprite(name);
		frames.add(sprite);
		width = sprite.getWidth(null);
		height = sprite.getHeight(null);
	}

	public Image getLast() {
		return frames.getLast();
	}

	public int getWidth() {
		return this.width;
	}

	public int getHeight() {
		return this.height;
	}

}
